const wechat = {
  // appid: "wxeaff9927b76410d8", //测试
  // appsecret: "82847fab6519ed7e7c6cc6cc978fdae2", //测试
  // notifyUrl: "http://wiki.menpuji.com:8889/api/cdc/pay/notify/wechat", //mstore回调地址，用于支付的微信支付的回调，必须外网
  // openid: "o74IhwNMuD6QPxxipII8ovXZBQZc", //测试
  // storeId: "1doq6jxo4tdwosgk0s8og0408", //测试
  // partnerKey: "4ktf5ef518axp7r2sstkdzq1nf83whxe", //测试
  // mchId: "1360898402"
}

const nedb = {
  dataRootDir: "./data/nedb", //nedb路径
  DBName: "mstore"
}

const app = {
  appUrl: process.env.appUrl || "http://172.16.255.151:9091", //java服务器(非支付业务) http://beta.menpuji.com/
  app: process.env.appUrl || "http://wiki.menpuji.com:9090", //java服务器(支付系统)
  notifyHost: process.env.cnsUrl　 || "http://172.16.255.133:8899", //cns服务器
  cdcUrl: process.env.fbsUrl || 　"http://172.16.255.133:8887", //fbs服务器  http://wechat.menpuji.com:3000
  mstoreUrl: process.env.mstoreUrl || "http://wiki.menpuji.com",
  orderExpiration: 86400000, //order有效期
  wexinOrderVersion: 2
}



module.exports = {
  nedb,
  wechat,
  app
}
